package de.mizi.tilemap.object;


/**
 * Represents a single tile object that has an visual repesentation on a
 * tilemap and a description.
 * @author mizi
 *
 */
public class TilemapObject {
	protected TilemapObjectDrawData drawData;
	protected String description;
	
	/**
	 * Constructs a new TilemapObject with the given draw data and description.
	 * @param drawData the data that is used to draw this object
	 * @param description the description of this object
	 */
	public TilemapObject(TilemapObjectDrawData drawData, String description) {
		this.drawData = drawData;
		this.description = description;
	}

	/**
	 * Get the draw data of this object.
	 * @return the data that is used to draw this object
	 */
	public TilemapObjectDrawData getDrawData() {
		return drawData;
	}

	/**
	 * Set the draw data of this object.
	 * @param drawData the new draw data
	 */
	public void setDrawData(TilemapObjectDrawData drawData) {
		this.drawData = drawData;
	}

	/**
	 * Get the description of this object.
	 * @return the description of this object
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * Set the description of this object.
	 * @param description the description of this object
	 */
	public void setDescription(String description) {
		this.description = description;
	}
}
